import yaml
from autoTest_ecshop_new1.utils.get_path import get_yaml_path

def read_yaml(filename):
    path=get_yaml_path(filename)
    with open(path,'r',encoding="utf-8") as f:
        return yaml.safe_load(f)




if __name__ == '__main__':
    # res=read_yaml("login.yaml")["loginInfo"]
    res=read_yaml("login.yaml")
    print(res['username'])
    print(res['password'])
    print(res)